<?php

/*
|--------------------------------------------------------------------------
| System Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of the routes that are handled
| by your module. Just tell Laravel the URIs it should respond
| to using a Closure or controller method. Build something great!
|
*/
//系统模块路由
Route::group(['prefix'=>'admin','middleware' => 'auth.admin:admin'],function (){
    //图标管理
    Route::group(['prefix' => 'message'], function(){
        Route::get('/','MessageController@index')->name('admin.message');//消息列表
        Route::get('getList','MessageController@getList')->name('admin.message.getList');
        Route::get('create', 'MessageController@create')->name('admin.message.create');
        Route::post('store', 'MessageController@store')->name('admin.message.store');
        Route::post('update', 'MessageController@update')->name('admin.message.update');
        Route::delete('destroy', 'MessageController@destroy')->name('admin.message.destroy');
        Route::get('{id}/edit', 'MessageController@edit')->name('admin.message.edit');
        Route::get('{id}/detail', 'MessageController@detail')->name('admin.message.detail');
    });
});



